package cn.tedu.hotelApi.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class UserParam {
    @ApiModelProperty(value = "用户id")
    private Long id;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "国籍")
    private String nationality;
    @ApiModelProperty(value = "性别 女0 男1")
    private String gender;
    @ApiModelProperty(value = "证件类型")
    private String certType;
    @ApiModelProperty(value = "身份证号码")
    private String idNumber;
    @ApiModelProperty(value = "出生日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthDate;
    @ApiModelProperty(value = "电子邮件")
    private String email;
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入住日期")
    private Date checkInDate;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "离店日期")
    private Date checkOutDate;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
